package com.ruoyi.supplier.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收货地址对象 tb_address
 * 
 * @author ruoyi
 * @date 2021-02-18
 */
public class TbAddress extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收货地址表 */
    private Long id;

    /** 所在地区 */
    @Excel(name = "所在地区")
    private String addArea;

    /** 行政区域表的省ID */
    @Excel(name = "行政区域表的省ID")
    private String province;

    /** 收货人 */
    @Excel(name = "收货人")
    private String addReceiver;

    /** 行政区域表的市ID */
    @Excel(name = "行政区域表的市ID")
    private String city;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 行政区域表的区县ID */
    @Excel(name = "行政区域表的区县ID")
    private String county;

    private String provinceName;

    private String cityName;

    private String countyName;

    /** 电子邮箱 */
    @Excel(name = "电子邮箱")
    private String email;

    /** 固定电话 */
    @Excel(name = "固定电话")
    private String telephone;

    /** 是否默认地址 */
    @Excel(name = "是否默认地址")
    private String defaultAddress;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAddArea(String addArea) 
    {
        this.addArea = addArea;
    }

    public String getAddArea() 
    {
        return addArea;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setAddReceiver(String addReceiver) 
    {
        this.addReceiver = addReceiver;
    }

    public String getAddReceiver() 
    {
        return addReceiver;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setCounty(String county) 
    {
        this.county = county;
    }

    public String getCounty() 
    {
        return county;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setTelephone(String telephone) 
    {
        this.telephone = telephone;
    }

    public String getTelephone() 
    {
        return telephone;
    }
    public void setDefaultAddress(String defaultAddress)
    {
        this.defaultAddress = defaultAddress;
    }

    public String getDefaultAddress()
    {
        return defaultAddress;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCountyName() {
        return countyName;
    }

    public void setCountyName(String countyName) {
        this.countyName = countyName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("addArea", getAddArea())
            .append("province", getProvince())
            .append("addReceiver", getAddReceiver())
            .append("city", getCity())
            .append("phone", getPhone())
            .append("county", getCounty())
            .append("email", getEmail())
            .append("telephone", getTelephone())
            .append("defaultAddress", getDefaultAddress())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
